package com.blackline.UI.ACCOUNTS;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Feb, 2013
 * <p>This page is after clicking "Add Supporting Item" link in Reconciliation page.
 * Please refer to UI.AddItem.png in doc-files.<br>
 */
public class AddItem {
	/**
	 * Save button
	 */
	@FindBy (xpath = "//img[@src='../../Images/Update.gif']")
	public WebElement Save_button;
	
	/**
	 * Cancel button
	 */
	@FindBy (xpath = "//img[@src='../../Images/Cancel.gif']")
	public WebElement Cancel_button;
	
	/**
	 *  Txn. Amount text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_tbAmountTxn")
	public WebElement Txn_Amount_textField;
	
	/**
	 * Txn. Amount currency drop down list
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_ddlCurrencyTxn")
	public WebElement Txn_Amount_dropDownList;
	
	
	/**
	 * Amount text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_tbAmount")
	public WebElement Amount_textField;
	
	/**
	 * Required Adjustment radio button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_ftItemState_RadioButtonRA")
	public WebElement Required_Adjustment_radioButton;
	
	/**
	 * List Component radio button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_ftItemState_RadioButtonL")
	public WebElement List_Component_radioButton;
	
	/**
	 * Timing Item radio button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_ftItemState_RadioButtonT")
	public WebElement Timing_Item_radioButton;
	
	/**
	 * Origination Date text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_cdpOriginationDate_dateInput_text")
	public WebElement Origination_Date_textField;
	
	/**
	 * Open Date text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_cdpOpenDate_dateInput_text")
	public WebElement Open_Date_textField;
	
	/**
	 * Close Date text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_cdpCloseDate_dateInput_text")
	public WebElement Close_Date_textField;
	
	/**
	 * Item Type drop-down list
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_ddlItemSubType")
	public WebElement Item_Type_dropdownlist;
	
	/**
	 * Invoice Number text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_tb_RefField1")
	public WebElement Invoice_Number_textField;
	
	/**
	 * Journal Entry Number text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_tb_RefField2")
	public WebElement Journal_Entry_Number_textField;
	
	/**
	 * Description iframe. If you want to input texts into Description text box, you need to switch into this iframe; later you may need to switch back to defaultContent().
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_bleDescription_contentIframe")
	public WebElement Description_iframe;
	
	/**
	 * Description text box
	 */
	@FindBy (xpath = "//body")
	public WebElement Description_textBox;
	
	/**
	 * Add Comment link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_lbAddComment")
	public WebElement Add_Comment_link;
	
	/**
	 * Add Document link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_lbAddDocument")
	public WebElement Add_Document_link;
	
	/**
	 * Add Hyperlink link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_hyperlinksGrid_lbAddHyperlink")
	public WebElement Add_Hyperlink_link;
	
	/**
	 * Comments Up/Down arrow icon (Up arrow and Down arrow use the same ID)
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_ibComments")
	public WebElement Comments_UPorDown_arrowIcon;
	
	/**
	 * Comments Up arrow icon, means the comments table is expanded.
	 */
	@FindBy (xpath = "//input[@src='../../Images/collapse.gif' and @id='ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_ibComments']")
	public WebElement Comments_Up_arrowIcon;
	
	/**
	 * Comments Down arrow icon, means the comments table is collapsed.
	 */
	@FindBy (xpath = "//input[@src='../../Images/expand.gif' and @id='ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_ibComments']")
	public WebElement Comments_Down_arrowIcon;
	
	/**
	 * Table Row ("tr" element) of 1st item in comment table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_commentsGrid_ctl00__0")
	public WebElement tableRowOf1stComment;
	
	/**
	 * Edit icon of 1st comment
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_commentsGrid_ctl00_ctl04_imgBtnView")
	public WebElement Edit_iconOf1stComment;
	
	/**
	 * Texts of 1st comments
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_commentsGrid_ctl00__0']/td[5]")
	public WebElement Texts_of1stComment;
	
	
	/**
	 * Table Row ("tr" element) of 2nd item in comment table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_commentsGrid_ctl00__1")
	public WebElement tableRowOf2ndComment;
	
	/**
	 * Edit icon of 2nd comment
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_commentsGrid_ctl00_ctl06_imgBtnView")
	public WebElement Edit_iconOf2ndComment;
	
	/**
	 * Texts of 1st comment
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_ftAddItem_commentsGrid_commentsGrid_ctl00__1']/td[5]")
	public WebElement Texts_of2ndComment;
	
	//-------=====================================
	/**
	 * Documents Up/Down arrow icon (Up arrow and Down arrow use the same ID)
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_ibDocuments")
	public WebElement Documents_UPorDown_arrowIcon;
	
	/**
	 * Documents Up arrow icon, means the Documents table is expanded.
	 */
	@FindBy (xpath = "//input[@src='../../Images/collapse.gif' and @id='ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_ibDocuments']")
	public WebElement Documents_Up_arrowIcon;
	
	/**
	 * Documents Down arrow icon, means the Documents table is collapsed.
	 */
	@FindBy (xpath = "//input[@src='../../Images/expand.gif' and @id='ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_ibDocuments']")
	public WebElement Documents_Down_arrowIcon;
	
	/**
	 * Table Row ("tr" element) of 1st item in Documents table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_documentsGrid_ctl00__0")
	public WebElement tableRowOf1stDocument;
	
	/**
	 * Edit icon of 1st Documents
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_documentsGrid_ctl00_ctl04_imgBtnView")
	public WebElement Edit_iconOf1stDocument;
	
	/**
	 * Texts of 1st Document
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_documentsGrid_ctl00__0']/td[5]")
	public WebElement Texts_of1stDocument;
	
	
	/**
	 * Table Row ("tr" element) of 2nd item in Documents table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_documentsGrid_ctl00__1")
	public WebElement tableRowOf2ndDocument;
	
	/**
	 * Edit icon of 2nd Document
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_documentsGrid_ctl00_ctl06_imgBtnView")
	public WebElement Edit_iconOf2ndDocument;
	
	/**
	 * Texts of 1st Document
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_ftAddItem_documentsGrid_documentsGrid_ctl00__1']/td[5]")
	public WebElement Texts_of2ndDocument;
	
	
	

}
